package com.example.lib

class MyClass {

    companion object {
        interface Base {
            fun saddfsdf()
        }

        class BaseImpl(val x: Int) : Base {
            override fun saddfsdf() {
                print(x)
            }
        }

        class Derived(asd: Base) : Base by asd

        /** 我是main入口函数 **/
        @JvmStatic
        fun main(args: Array<String>) {
            val b = BaseImpl(10)
            Derived(b).saddfsdf()
        }
    }


}